addHook("BotAI", function(mo, bot)
	if not multiplayer and not netgame and mo and mo.valid and bot and bot.valid
	and (mo.skin == "leader" or mo.skin == "partner1" or mo.skin == "partner2")
		if not (mo.player.buddies and #mo.player.buddies)
			R_SetPlayerSkin(mo.player, "leader")
			mo.player.skincolor = skins["leader"].prefcolor
			mo.player.mo.color = skins["leader"].prefcolor
			COM_BufInsertText(mo.player, "addbot partner1 skin supress")
			COM_BufInsertText(mo.player, "addbot partner2 skin supress")
		end
		bot.momx = 0
		bot.momy = 0
		bot.momz = 0
		bot.reactiontime = -1
		bot.player.powers[pw_ignorelatch] = 32768
		bot.flags = $|MF_NOCLIP|MF_NOCLIPTHING|MF_SCENERY|MF_NOTHINK
		bot.flags2 = $|MF2_DONTDRAW
		bot.state = S_INVISIBLE
	end
end, "leader")

print("\x88 BuddyEx v1.2 by SMS Alfredo, based on code by Jimita and CobaltBW",
"\x81 Use addbot [skin, color] to add a bot into the game.",
"\x81 Put the word skin instead of a color to get that skin's prefcolor.",
"\x85 Use delbot to remove one of your bots.",
"\x87 Use stalkbot [botnum] to spectate one of your bots.",
"\x82 Use buddy_limit [number] to cap the amount of bots each player can have.",
"\x82 It can also be set to zero to disable bots entirely.",
"\x83 Use buddy_attack and buddy_seekdist to control AI aggressiveness.",
"\x84 Enable buddy_debug to print debug information in the console.")